require_dependency "login_system"
require_dependency 'navigation_bits'
require_dependency 'listing'

class ApplicationController < ActionController::Base
  include LoginSystem 
  
  helper_method :current_user
  helper_method :logged_in?
  model :user
  
protected
  def render_reload_js
    render :text => "window.location.href = window.location.href;"
  end
  
  def security_violation
    render :partial => 'errors/security_violation', :status => 403, :layout => 'application'
  end
  
  def access_denied
    render :partial => 'errors/security_violation', :status => 403, :layout => 'application'
  end
end
